﻿# -*- coding:utf-8 -*-
from django.contrib import admin
from storage.models import Category, Part, PartItem, Document, DocumentItem, DocumentReceipt, DocumentDelivery, Unit, Place
 

#
# admin.py
#
'''
class DocumentItemInline(admin.TabularInline):
    model = DocumentItem

class  DocumentAdmin(admin.ModelAdmin):
    inlines = [
        DocumentItemInline,
    ]
    fieldsets = (
        (None,{
            'fields': ('name', 'kind','state','user','comment')
        }),
    )
    list_display = ('date','name', 'kind', 'state')
'''
#admin.site.register(Document, DocumentAdmin)
 
admin.site.register(Document)  
admin.site.register(Category)
admin.site.register(Part)
admin.site.register(Unit)
admin.site.register(Place)
admin.site.register(DocumentItem)
admin.site.register(PartItem)
admin.site.register(DocumentReceipt)  
admin.site.register(DocumentDelivery) 
